package com.woniu.lifeservice.service.impl;

import com.woniu.lifeservice.pojo.Category;
import com.woniu.lifeservice.mapper.CategoryMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniu.lifeservice.service.ICategoryService;
import com.woniu.lifeservice.vo.CategoryVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 分类表 服务实现类
 * </p>
 *
 * @author hushunlai
 * @since 2023-05-22
 */
@Service
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category> implements ICategoryService {
    @Resource
    private CategoryMapper categoryMapper;

    @Override
    public List<CategoryVO> CategorySearch(Integer parentId) {
        List<CategoryVO> categoryVOList = categoryMapper.CategorySearch(parentId);
        return categoryVOList;
    }
}
